﻿<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="KursachApp.NotesForAdminPage"
             Title="Все заметки">
    <ContentPage.Content>
        <StackLayout>
            <ListView x:Name="notesList" ItemsSource="{Binding}" ItemSelected="OnItemSelected" RowHeight="80" >
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <ViewCell.View>
                                <Frame CornerRadius="10"  
                                    BorderColor="DarkSeaGreen" 
                                    HasShadow="True"
                                    IsClippedToBounds="True">
                                    <StackLayout Orientation ="Vertical">
                                    <StackLayout Orientation="Horizontal">
                                    <Label Text="{Binding Theme}" FontSize="Large" />
                                    </StackLayout>
                                    <StackLayout Orientation="Horizontal">
                                            <Label Text="Пациент: " FontSize="Medium" />
                                            <Label Text="{Binding User.SurName}" FontSize="Medium" />
                                            <Label Text="{Binding User.Name}" FontSize="Medium" />
                                            <Label Text="{Binding User.Patronymic}" FontSize="Medium" />
                                        </StackLayout>

                                    </StackLayout>
                                    
                                </Frame>
                                
                            </ViewCell.View>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
            <Button Text="Добавить" Clicked="CreateNotes" />
            <Button Text="Страница с пользователями" Clicked="UsersGo" />
        </StackLayout>
    </ContentPage.Content>
</ContentPage>